package com.leyou.statis.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;

/**
 * @数表名称 tb_statis
 * @开发日期 2020-04-06
 */
@Data
@Table(name="tb_statis")
public class Statis implements Serializable {
    
    /** 主键id (主健ID) */
    @Id
    @Column(name="id")
    private Long id;

    /**  */
    @Column(name="spu_id")
    private Long spuId;

    /** 分类id */
    @Column(name="c_id")
    private Long cId;

    /**  */
    @Column(name="create_date")
    private Date createDate;

    /** 销售数量  (默认值为: 0) */
    @Column(name="num")
    private Integer num;

    /** 当前日期该商品的销售总额，单位分 */
    @Column(name="total_price")
    private Long totalPrice;

    /** 商品名 */
    @Column(name="spu_name")
    private String spuName;

    /** 分类名 */
    @Column(name="category_name")
    private String categoryName;

    @Transient
    private Integer quarter;

    @Transient
    private Integer month;

    @Transient
    private Integer year;

    private static final long serialVersionUID = 1L;
}